package com.pubinfo.passbook.common.service.master;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pubinfo.passbook.common.entity.TRuleFrequency;
import com.pubinfo.passbook.common.entity.TSystemRole;
import com.pubinfo.passbook.common.model.dto.rule.RuleFrequencyParam;
import com.pubinfo.passbook.common.model.http.eip.UserInfo;
import com.pubinfo.passbook.common.model.vo.base.JsonResult;

/**
 *
 */
public interface TRuleFrequencyService extends IService<TRuleFrequency> {
  
  IPage<TRuleFrequency> listRuleFrequency(RuleFrequencyParam param, UserInfo userInfo, TSystemRole systemRole);
  
  JsonResult<String> removeRuleFrequency(String id, UserInfo userInfo, TSystemRole systemRole);
  
  JsonResult<String> updateRuleFrequency(TRuleFrequency frequency, UserInfo userInfo, TSystemRole systemRole);
  
  JsonResult<String> saveRuleFrequency(TRuleFrequency frequency, UserInfo userInfo, TSystemRole systemRole);
}
